<?php

include_once("./tool_maths.php");

function plus_x_dim($_a, $_x, $_val){
  $a = $_a;
  for($i=0 ; $i<$_x ; ++$i){
    $a[] = $_val;
  }
  return $a;
}

$rep1 = array(1,1,1,1,0,0,0,0,0,0);
$rep2 = array(0,0,0,1,1,1,1,0,0,0);
$rep3 = array(0,0,0,0,0,1,1,1,1,0);
$rep4 = array(0,0,0,0,1,1,1,1,1,1);


//$rep1 = plus_x_dim($rep1,10,0);
$n = count($rep1);

//$cont_test = tool_maths::get_table_contingence($rep1,$rep4,$n);



$cont_test = array(110,2442,111,29114);
//$cont_test = array(29,13,123,31612);

$rv12 = tool_maths::get_RV2($cont_test);
$rv11 = tool_maths::get_RV($cont_test);
print_r($cont_test);
echo $rv12;
echo "\n";
echo $rv11;


?>
